/*******************
 * DataPoint.cpp
 *******************/

#include "DataPoint.h"
DataPoint::DataPoint() {
	myX = 0; myY = 0;
	myValue = 0.0;
	known = false;
}
DataPoint::DataPoint(int y, int x, double value) {
	myY = y;
	myX = x;
	myValue = value;
	known = true;
}
///Returns distance to "other" point
/** Caluculates using coordinates and distance formula
 * <B>Return:</B> (double) distance to given point
 */
double DataPoint::distanceTo(DataPoint other /**\brief point to find distance to*/) {
	return sqrt(pow(myX-other.getX(), 2)+pow(myY-other.getY(), 2));
}
DataPoint::~DataPoint() {
	// TODO Auto-generated destructor stub
}
